# IPython log file


import cPickle
import math
import histogram
from histogram import dump as hdump
from histogram import load as hload
import tables
import numpy
import matplotlib
from matplotlib import pyplot
import physics
import physics.vector as vector
import os
import glob
from collections import defaultdict
with open("pedestals.dat") as fp:
    bytestr = fp.read()
    
len(bytestr)
len(bytestr) % 4
from collections import Counter
from struct import *
words = unpack("%dI" % len(bytestr)/4, bytestr)
nwords = len(bytestr) / 4
nwords
words = unpack("%dI" % nwords, bytestr)
len(words)
packets = []
